/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yang
 * Date: 2022-04-28
 * Time: 18:48
 */
public class Main {
    public static int factorial(int num){
        int ret=1;
        while(num != 0){
            ret *= num;
            num--;
        }
        return ret;
    }
    public static void main(String[] args) {
        System.out.println(factorial(5));
    }
}
